package com.cyk.comicforumjava.demos.mapper;

import com.cyk.comicforumjava.demos.dto.UserDto;
import com.cyk.comicforumjava.demos.enits.ChatList;
import com.cyk.comicforumjava.demos.enits.Message;
import com.cyk.comicforumjava.demos.enits.Post;
import com.cyk.comicforumjava.demos.vo.MessageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {

    void addMessage(Message message);

    List<Post> selectPostList(Long userId);

    List<Message> selectSupportList(Long userId);

    List<Message> selectMyBackList(Long userId);




    List<Message> selectUserName(UserDto userDto);

    List<MessageVo> selectChatList(ChatList chatList);

    List<MessageVo> searchMessage(String content);

    void deleteMessage(String id);


}
